home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 1.iso / t_os / helper / source / dir.h < prev    next >
Text File  |  1991-10-18  |  726b  |  36 lines

  1. /*
  2.  *    dir.h
  3.  */
  4.  
  5. #define    IS_DIR(dp)    (dp->d_att & 0x10)
  6.  
  7. typedef struct direct {
  8.     struct direct    *d_next;
  9.     struct direct    *d_child;
  10.     unsigned char    d_att;
  11.     unsigned short int    d_time,d_date;
  12.     unsigned long    d_size;
  13.     char        d_name[1];
  14. } DIRECT;
  15.  
  16. typedef struct {
  17.     DIRECT    *dd_top;
  18.     DIRECT    *dd_now;
  19. } DIR;
  20.  
  21. DIR    *opendir(char *dir);
  22. DIRECT    *readdir(DIR *dirp);
  23. void    seekdir(DIR *dirp,int n);
  24. void    closedir(DIR *dirp);
  25.  
  26. int    chdrv(int no);
  27. int    chdir(char *name);
  28. int    getdrv(void);
  29. int    getdir(char *name);
  30. int    mkdir(char *name);
  31. int    rmdir(char *name);
  32. int    getattr(char *name);
  33. int    isdir(char *name);
  34. char    *joint_path(char *dir,char *file);
  35. char    *file_serch(char *dir,char *file);
  36.